package com.hanhai.zrb.model.resourcematch;

public enum ResourceMatchLevelEnum {
	ALL(0),FIRST(1), SECOND(2), THIRD(3);
	private Integer code;

	public Integer getCode() {
		return code;
	}

	private ResourceMatchLevelEnum(int code) {
		this.code = code;
	}
	
	public static ResourceMatchLevelEnum enumLevel(Integer intLevel){
		if(intLevel == null){
			return null;
		}
		if(intLevel == ALL.getCode()){
			return ALL;
		}else if(intLevel == FIRST.getCode()){
			return FIRST;
		}else if(intLevel == SECOND.getCode()){
			return SECOND;
		}else if(intLevel == THIRD.getCode()){
			return THIRD;
		}
		return null;
	}
}